<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
   <%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@include file="../common/jspcommon.jsp"%>
<%@include file="../common/jscss.jsp"%>
   
 <script type="text/javascript">
 var grid_ae = null;
	$(function(){
		grid_ae = $("#order_log_grid").ligerGrid({
				title : '日志列表',
                columns: [
                { display: '日志号', name: 'id', isSort : false, width: 90},
                { display: '订单号', name: 'orderId',isSort : false, width: 90},
                { display: '上一步状态', name: 'preStatus',isSort : false, width: 80 ,
                	render: function (record, rowindex, value, column){
                		var html = '';
                		if(value == '01'){
                			html = '待支付';
                		}else if(value == '02'){
                			html = '已支付';
                		}else if(value == '03'){
                			html = '已成功';
                		}else if(value == '04'){
                			html = '已完成';
                		}else if(value == '05'){
                			html = '已取消';
                		}else if(value == '06'){
                			html = '挂起';
                		}
						return html; 
					}
                },
                { display: '当前状态', name: 'status',isSort : false, width: 80 ,
                 	render: function (record, rowindex, value, column){
                 		var html = '';
                 		if(value == '01'){
                 			html = '待支付';
                 		}else if(value == '02'){
                 			html = '已支付';
                 		}else if(value == '03'){
                 			html = '已成功';
                 		}else if(value == '04'){
                 			html = '已完成';
                 		}else if(value == '05'){
                 			html = '已取消';
                 		}else if(value == '06'){
                 			html = '挂起';
                 		}
 						return html; 
 					}
                },
                { display: '操作者', name: 'trigger',isSort : false, width: 80 },
                { display: '备注', name: 'memo',isSort : false, width: 700 },
                { display: '操作时间', name: 'gmtCreated',isSort : false,
                    render: function(record, rowindex, value, column){
                  	 return (new Date(value.time)).format("yyyy年MM月dd日 hh:mm:ss");
                    }
                  }
                ], 
                pageSize:20,
                root :'list',
                record:'totalRecord',
                url: "/misc/order/sendLog.htm?id=${id}", 
                width: '99%',height:'99%'
            });
	});
</script>
<div id="order_log_grid" style="margin:0; padding:0"></div>